package com.xiaoxi.fastdfsserver.service;

import com.xiaoxi.common.exception.BMSException;
import com.xiaoxi.domain.fastdfs.FastDfs;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author xiaoxi
 * @ProjectName springcloudbms
 * @PackageName com.xiaoxi.fastdfs.service
 * @ClassName FastDfsService
 * @Description TODO
 * @Date 2023/2/9 18:54
 * @Version 1.0
 */
public interface FastDfsService {

    /**
     * 上传图片
     *
     * @param file
     * @return
     * @throws BMSException
     */
    FastDfs uploadImage(MultipartFile file) throws BMSException;

    /**
     * 上传表格
     *
     * @param file
     * @return
     * @throws BMSException
     */
    FastDfs uploadExcel(MultipartFile file) throws BMSException;

}